home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / signature_switch-1.6.1-tb.xpi / chrome / signatureswitch.jar / content / options.xul < prev    next >
Extensible Markup Language  |  2008-03-07  |  17KB  |  239 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/"?>
  4. <?xml-stylesheet href="chrome://signatureswitch/skin/options.css" type="text/css"?>
  5.  
  6. <!DOCTYPE dialog SYSTEM "chrome://signatureswitch/locale/signatureswitch.dtd">
  7.  
  8. <dialog
  9.  
  10.         id="SignatureSwitchoptions"
  11.         title="&signatureswitch.label.options.windowtitle;"
  12.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  13.         buttons="accept, cancel"
  14.         onload="onLoad();"
  15.         ondialogaccept="onDialogAccept();"
  16.         ondialogcancel="onDialogCancel();">
  17.  
  18.     <script type="application/x-javascript" src="chrome://signatureswitch/content/options.js"/>
  19.  
  20.     <stringbundleset id="stringbundleset">
  21.         <stringbundle id="signatureswitch.locale" src="chrome://signatureswitch/locale/signatureswitch.properties"/>
  22.     </stringbundleset>
  23.  
  24.     <tabbox id="ssTabBox">
  25.         <tabs>
  26.             <tab label="&signatureswitch.label.options.maintab;"/>
  27.             <tab label="&signatureswitch.label.options.misctab;"/>
  28.             <tab label="&signatureswitch.label.options.advancedtab;"/>
  29.             <tab label="&signatureswitch.label.options.helptab;"/>
  30.         </tabs>
  31.         <tabpanels flex="1">
  32.             <tabpanel id="maintab" flex="1" orient="vertical">
  33.                     <groupbox orient="horizontal" align="center">
  34.                         <caption label="&signatureswitch.label.options.tree.signatures;"/>
  35.                         <hbox flex="1">
  36.                             <tree id="signatureswitchTree" flex="1" rows="4" onselect="return onSelectItem();" ondblclick="return editItem();">
  37.                               <treecols>
  38.                                 <treecol id="default" label="&signatureswitch.label.options.tree.default;" persist="width" cycler="true"/>
  39.                                 <splitter class="tree-splitter"/>
  40.                                 <treecol id="description" label="&signatureswitch.label.options.tree.description;" flex="1" persist="width"/>
  41.                                 <splitter class="tree-splitter"/>
  42.                                 <treecol id="path" label="&signatureswitch.label.options.tree.path;" flex="1" persist="width"/>
  43.                                 <splitter class="tree-splitter"/>
  44.                                 <treecol id="shortcut" label="&signatureswitch.label.options.tree.shortcut;" flex="1" persist="width" hidden="true"/>
  45.                                 <splitter class="tree-splitter"/>
  46.                                 <treecol id="addresses" label="&signatureswitch.label.options.tree.addresses;" flex="1" persist="width" hidden="true"/>
  47.                                 <splitter class="tree-splitter"/>
  48.                                 <treecol id="newsgroups" label="&signatureswitch.label.options.tree.newsgroups;" flex="1" persist="width" hidden="true"/>
  49.                                 <splitter class="tree-splitter"/>
  50.                                 <treecol id="mailinglists" label="&signatureswitch.label.options.tree.mailinglists;" flex="1" persist="width" hidden="true"/>
  51.                               </treecols>
  52.                               <treechildren/>
  53.                             </tree>
  54.                             <vbox>
  55.                                 <button class="new"
  56.                                         label="&signatureswitch.label.options.button.new;"
  57.                                         id="new"
  58.                                         oncommand="return newItem();"/>
  59.                                 <button class="edit"
  60.                                         label="&signatureswitch.label.options.button.edit;"
  61.                                         id="edit"
  62.                                         oncommand="return editItem();"/>
  63.                                 <button class="delete"
  64.                                         label="&signatureswitch.label.options.button.delete;"
  65.                                         id="delete"
  66.                                         oncommand="return deleteItem();"/>
  67.                                 <hbox>
  68.                                     <button class="up"
  69.                                             id="up"
  70.                                             oncommand="return moveItem(true);"/>
  71.                                     <spacer flex="1"/>
  72.                                     <button class="down"
  73.                                             id="down"
  74.                                             oncommand="return moveItem(false);"/>
  75.                                 </hbox>
  76.                             </vbox>
  77.                         </hbox>
  78.                     </groupbox>
  79.                     <groupbox>
  80.                         <caption label="&signatureswitch.label.options.shortcut.groupbox;"/>
  81.                         <grid flex="1">
  82.                             <columns>
  83.                                 <column/>
  84.                                 <column/>
  85.                                 <column/>
  86.                                 <column/>
  87.                                 <column/>
  88.                                 <column/>
  89.                                 <column/>
  90.                             </columns>
  91.                             <rows>
  92.                                 <row>
  93.                                     <label style="margin-top:7px;" value="&signatureswitch.label.options.shortcut.onoff;"/>
  94.                                     <menulist id="shortcut_onoff_key" prefstring="extensions.signatureswitch.shortcut_onoff_key" defaultpref="Y">
  95.                                         <menupopup>
  96.                                             <menuseparator/>
  97.                                             <menuitem label="A"/>
  98.                                             <menuitem label="B"/>
  99.                                             <menuitem label="C"/>
  100.                                             <menuitem label="D"/>
  101.                                             <menuitem label="E"/>
  102.                                             <menuitem label="F"/>
  103.                                             <menuitem label="G"/>
  104.                                             <menuitem label="H"/>
  105.                                             <menuitem label="I"/>
  106.                                             <menuitem label="J"/>
  107.                                             <menuitem label="K"/>
  108.                                             <menuitem label="L"/>
  109.                                             <menuitem label="M"/>
  110.                                             <menuitem label="N"/>
  111.                                             <menuitem label="O"/>
  112.                                             <menuitem label="P"/>
  113.                                             <menuitem label="Q"/>
  114.                                             <menuitem label="R"/>
  115.                                             <menuitem label="S"/>
  116.                                             <menuitem label="T"/>
  117.                                             <menuitem label="U"/>
  118.                                             <menuitem label="V"/>
  119.                                             <menuitem label="W"/>
  120.                                             <menuitem label="X"/>
  121.                                             <menuitem label="Y"/>
  122.                                             <menuitem label="Z"/>
  123.                                         </menupopup>
  124.                                     </menulist>
  125.                                     <checkbox id="shortcut_onoff_modifier_accel" label="&signatureswitch.label.options.shortcut.accel;" prefstring="extensions.signatureswitch.shortcut_onoff_modifier_accel" defaultpref="false"/>
  126.                                     <checkbox id="shortcut_onoff_modifier_alt" label="&signatureswitch.label.options.shortcut.alt;" prefstring="extensions.signatureswitch.shortcut_onoff_modifier_alt" defaultpref="false"/>
  127.                                     <checkbox id="shortcut_onoff_modifier_control" label="&signatureswitch.label.options.shortcut.control;" prefstring="extensions.signatureswitch.shortcut_onoff_modifier_control" defaultpref="true"/>
  128.                                     <checkbox id="shortcut_onoff_modifier_meta" label="&signatureswitch.label.options.shortcut.meta;" prefstring="extensions.signatureswitch.shortcut_onoff_modifier_meta" defaultpref="false"/>
  129.                                     <checkbox id="shortcut_onoff_modifier_shift" label="&signatureswitch.label.options.shortcut.shift;" prefstring="extensions.signatureswitch.shortcut_onoff_modifier_shift" defaultpref="true"/>
  130.                                 </row>
  131.                                 <row>
  132.                                     <label style="margin-top:7px;" value="&signatureswitch.label.options.shortcut.cycle;"/>
  133.                                     <menulist id="shortcut_cycle_key" prefstring="extensions.signatureswitch.shortcut_cycle_key" defaultpref="C">
  134.                                         <menupopup>
  135.                                             <menuseparator/>
  136.                                             <menuitem label="A"/>
  137.                                             <menuitem label="B"/>
  138.                                             <menuitem label="C"/>
  139.                                             <menuitem label="D"/>
  140.                                             <menuitem label="E"/>
  141.                                             <menuitem label="F"/>
  142.                                             <menuitem label="G"/>
  143.                                             <menuitem label="H"/>
  144.                                             <menuitem label="I"/>
  145.                                             <menuitem label="J"/>
  146.                                             <menuitem label="K"/>
  147.                                             <menuitem label="L"/>
  148.                                             <menuitem label="M"/>
  149.                                             <menuitem label="N"/>
  150.                                             <menuitem label="O"/>
  151.                                             <menuitem label="P"/>
  152.                                             <menuitem label="Q"/>
  153.                                             <menuitem label="R"/>
  154.                                             <menuitem label="S"/>
  155.                                             <menuitem label="T"/>
  156.                                             <menuitem label="U"/>
  157.                                             <menuitem label="V"/>
  158.                                             <menuitem label="W"/>
  159.                                             <menuitem label="X"/>
  160.                                             <menuitem label="Y"/>
  161.                                             <menuitem label="Z"/>
  162.                                         </menupopup>
  163.                                     </menulist>
  164.                                     <checkbox id="shortcut_cycle_modifier_accel" label="&signatureswitch.label.options.shortcut.accel;" prefstring="extensions.signatureswitch.shortcut_cycle_modifier_accel" defaultpref="false"/>
  165.                                     <checkbox id="shortcut_cycle_modifier_alt" label="&signatureswitch.label.options.shortcut.alt;" prefstring="extensions.signatureswitch.shortcut_cycle_modifier_alt" defaultpref="false"/>
  166.                                     <checkbox id="shortcut_cycle_modifier_control" label="&signatureswitch.label.options.shortcut.control;" prefstring="extensions.signatureswitch.shortcut_cycle_modifier_control" defaultpref="true"/>
  167.                                     <checkbox id="shortcut_cycle_modifier_meta" label="&signatureswitch.label.options.shortcut.meta;" prefstring="extensions.signatureswitch.shortcut_cycle_modifier_meta" defaultpref="false"/>
  168.                                     <checkbox id="shortcut_cycle_modifier_shift" label="&signatureswitch.label.options.shortcut.shift;" prefstring="extensions.signatureswitch.shortcut_cycle_modifier_shift" defaultpref="true"/>
  169.                                 </row>
  170.                              </rows>
  171.                         </grid>
  172.                     </groupbox>
  173.                     <checkbox id="offbydefault" label="&signatureswitch.label.options.offbydefault;" prefstring="extensions.signatureswitch.offbydefault" defaultpref="false"/>
  174.                     <checkbox id="contextmenu" label="&signatureswitch.label.options.contextmenu;" prefstring="extensions.signatureswitch.contextmenu" defaultpref="true"/>
  175.             </tabpanel>
  176.             <tabpanel id="miscelleneoustab" flex="1" orient="vertical">
  177.                 <groupbox orient="vertical">
  178.                     <caption label="&signatureswitch.label.options.composer;"/>
  179.                         <description width="450">&signatureswitch.label.options.composer-description;</description>
  180.                         <grid flex="1">
  181.                             <columns>
  182.                                 <column flex="1"/>
  183.                                 <column/>
  184.                             </columns>
  185.                             <rows>
  186.                                 <row>
  187.                                     <textbox id="composerpath" prefstring="extensions.signatureswitch.composerpath" defaultpref="/usr/bin/gedit"/>
  188.                                     <button class="browse" id="composer-pick" oncommand="return onPickComposer();"/>
  189.                                 </row>
  190.                             </rows>
  191.                         </grid>
  192.                 </groupbox>
  193.                 <groupbox orient="horizontal" align="center">
  194.                     <caption label="&signatureswitch.label.options.autoswitchpriority;"/>
  195.                     <listbox id="priorityList" rows="3" onselect="return onSelectPriority();"/>
  196.                     <hbox>
  197.                         <button class="up" id="priorityUp" oncommand="return movePriority(true);"/>
  198.                         <spacer flex="1"/>
  199.                         <button class="down" id="priorityDown" oncommand="return movePriority(false);"/>
  200.                     </hbox>
  201.                 </groupbox>
  202.             </tabpanel>
  203.             <tabpanel id="advancedtab" flex="1" orient="vertical">
  204.                 <groupbox orient="vertical">
  205.                     <caption label="&signatureswitch.label.options.encoding;"/>
  206.                         <description width="450">&signatureswitch.label.options.encoding-description;</description>
  207.                         <textbox id="encoding" prefstring="extensions.signatureswitch.encoding" defaultpref="UTF-8"/>
  208.                 </groupbox>
  209.                 <groupbox orient="vertical">
  210.                     <caption label="&signatureswitch.label.options.preloadexecutable;"/>
  211.                         <description width="450">&signatureswitch.label.options.preloadexecutable-description;</description>
  212.                         <grid flex="1">
  213.                             <columns>
  214.                                 <column/>
  215.                                 <column flex="1"/>
  216.                                 <column/>
  217.                             </columns>
  218.                             <rows>
  219.                                 <row>
  220.                                     <checkbox id="preloadexecutable" label="&signatureswitch.label.options.preloadexecutableusage;" prefstring="extensions.signatureswitch.preloadexecutable" defaultpref="false"/>
  221.                                     <textbox id="preloadexecutablepath" prefstring="extensions.signatureswitch.preloadexecutablepath" defaultpref=""/>
  222.                                     <button class="browse" id="preloadexecutablepick" oncommand="return onPickPreLoadExecutable();"/>
  223.                                 </row>
  224.                                 <checkbox id="preloadexecutablewait" label="&signatureswitch.label.options.preloadexecutablewait;" prefstring="extensions.signatureswitch.preloadexecutablewait" defaultpref="true"/>
  225.                             </rows>
  226.                         </grid>
  227.                         <description width="450" style="margin-top:10px;">&signatureswitch.label.options.preloadexecutablehelp;</description>
  228.                 </groupbox>
  229.             </tabpanel>
  230.             <tabpanel id="helptab" flex="1" orient="vertical">
  231.                 <description width="450">&signatureswitch.label.options.website;</description>
  232.                 <label id="website" class="text-link" onclick="openURL('http://mozext.achimonline.de');" style="margin-left:25px;" value="mozext.achimonline.de"/>
  233.             </tabpanel>
  234.         </tabpanels>
  235.     </tabbox>
  236.     <textbox id="initdelay" prefstring="extensions.signatureswitch.initdelay" defaultpref="1000" hidden="true"/>
  237.     <textbox id="autoswitchpriority" prefstring="extensions.signatureswitch.autoswitchpriority" defaultpref="ANM" hidden="true"/>
  238. </dialog>
  239.